package com.spider.im.login.req;

import com.spider.im.common.annotation.Desensitize;
import com.spider.im.common.annotation.DesensitizeStrategy;
import com.spider.im.login.annotation.LoginType;
import com.spider.im.login.enums.LoginTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 用户登录对象
 * 
 * @author ruoyi
 */
@Data
@Schema(description="用户登录对象")
public class LoginReq
{
    /**
     * 登陆类型
     */
    @Schema(description = "登陆类型")
    private LoginTypeEnum  loginType;

    /**
     * 用户名
     */
    @Schema(description = "用户名")
    private String username;

    /**
     * 用户密码
     */
    @Schema(description = "用户密码")
    private String password;

    /**
     * 手机
     */
    @Desensitize(strategy = DesensitizeStrategy.PHONE_NUMBER)
    @Schema(description = "手机号码")
    private String phone;

    /**
     * 短信验证码
     */
    @Schema(description = "短信验证码")
    private String verificationCode;

    /**
     * 微信登陆
     */
    @Schema(description = "微信")
    private String openId;

}
